from flask import Flask, request

app = Flask(__name__)


@app.route('/')
def home():
    return "Hello, World!"


@app.route('/user/<username>')
def show_user_profile(username):
    return f"User {username}"


@app.route('/post/<int:post_id>')
def show_post(post_id):
    return f"Post {post_id}"


@app.route('/login', methods=['GET', 'POST'])
def login():
    if request.method == 'POST':
        return "Do the login"
    else:
        return "Show the login form"


if __name__ == '__main__':
    app.run(debug=True)
